<template>
  <w-view>
    <layout-property :w="w" />
  </w-view>
</template>

<script>
  import $ from 'dfish-widget'
  import Widget from '../Widget.vue'
  import Pub from '../widget.pub.js'

  export default {
    mixins: [Widget],
    data() {
      return {
        name: 'TBody',
        remark: '表格的内容',
        extends: [Pub],
        attrs: [{
          name: 'children',
          remark: '树形节点的子节点数据集合',
          type: 'Array',
        }],
        slots: [{
          name: 'default',
          remark: '表格内容',
          option: 'w-tr'
        }, {
          name: 'row',
          remark: '树形表格的模板内容',
          option: 'w-tr',
          props: 'item, index'
        }]
      }
    }
  }
</script>
